package com.zx.system.block.dao;

import com.zx.system.block.model.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper {
    int deleteByPrimaryKey(@Param("roleId") String roleId, @Param("menuId") String menuId);

    int insert(SysRoleMenu row);

    int insertSelective(SysRoleMenu row);

    List<SysRoleMenu> selectRoleMenuByRoleId(@Param("roleId") String roleId);

    void batchInsert(@Param("list") List<SysRoleMenu> list);

    void batchDeleteByRoleIdAndMenuIds(@Param("roleId") String roleId, @Param("list") List<String> list);

    void deleteByRoleId(@Param("roleId") String roleId);
}